package com.goodsogood.union.auth.conf;

/**
 * 数据源配置
 * 
 * @author liuy
 *
 */
public class RedisConfiger {
    private static class InstanceHolder {  
        private static final RedisConfiger INSTANCE = new RedisConfiger();  
    }  
    public static final RedisConfiger getInstance() {  
        return InstanceHolder.INSTANCE;
    }
    private RedisConfiger (){
        this.addr = ConfigLoader.getValue("redis.address");
        this.pwd = ConfigLoader.getValue("redis.password");
    }

    private String addr;
    private String pwd;
    public String getAddr() {
        return addr == null ? "" : addr;
    }
    public String getPwd() {
        return pwd == null ? "" : pwd;
    }
}
